﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using AnimEditor.Define;
using System.Drawing;
using System.ComponentModel;
using AnimEditor.Tile;

namespace AnimEditor.Picture
{

  public class PicMgr : SingleTon<PicMgr>
  {
    Bitmap mBitmap = null;
    AnimSize m_NewBitmapSize = new AnimSize();

    
    TreeNode mSelTreeNode = null;
    public PicMgr()
    {
    }


    public AnimSize NewBitmapSize
    {
      get { return m_NewBitmapSize; }
      set { m_NewBitmapSize = value; }
    }

    public Bitmap BitMap
    {
      get { return mBitmap; }
      set { mBitmap = value; }
    }

    public TreeNode SelTreeNode
    {
      get { return mSelTreeNode; }
      set { mSelTreeNode = value; }
    }
    public void Clear()
    {
      mBitmap = null;
      mSelTreeNode = null;
    }
    public AnimRect GetMaxRect()
    {
      AnimRect ret = new AnimRect();
      ret.Size.Width = mBitmap.Width;
      ret.Size.Height = mBitmap.Height;
      return ret;
    }
  }

}
